package org.example.big_data.pojo;

import java.util.List;

/**
 * 分页查询专用的实体类，封装响应data中的total总条数和items本页中的所有文章对象
 */

public class PageBean <T> {
    private Long total;
    private List<T> items;

    public PageBean(List<T> items, Long total) {
        this.items = items;
        this.total = total;
    }

    public PageBean() {
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public Long getTotal() {
        return total;
    }

    public List<T> getItems() {
        return items;
    }
}
